package com.example.auth.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色资源映射
 *
 * @author yang
 * @date 2021-08-23 23:45:48
 */
@Data
@TableName("sys_role_permission")
@EqualsAndHashCode(callSuper = true)
public class SysRolePermissionEntity extends Model<SysRolePermissionEntity> {
private static final long serialVersionUID = 1L;

/**
 * 角色资源映射ID
 */
@ApiModelProperty( value = "角色资源映射ID")
@TableId
private String id;
/**
 * 角色ID
 */
@ApiModelProperty( value = "角色ID")
private String roleId;
/**
 * 资源ID
 */
@ApiModelProperty( value = "资源ID")
private String permissionId;

}